{@ $_col_count = 1; }

	<table class="productList">
	<thead>
		<tr>
			<!--@if($grant->manager)-->
            <th scope="col" class="no_line w5"><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></th>
	        <!--@end-->

		    <!--// 목록 설정으로 table theader 생성 -->
    <!--@foreach($list_config as $key => $val)-->
        <!--// 디자인 요소를 위한 내부 변수 설정(첫번째 th의 no_line 클래스 부여) -->
        <!--@if(!$grant->manager && $_line_idx==0)-->
            {@$_lc = 'class="no_line"';$_l = "no_line"}
        <!--@else-->
            {@$_lc = $_l = ""}
        <!--@end-->

        <!--// 기본 컨텐츠일 경우 -->
        <!--@if($val->idx == -1)-->

            <!--// 컨텐츠 종류에 따라서 출력 -->
            <!--@if($val->type == 'no')-->
                <th scope="col" {$_lc}><div>{$lang->no}</div></th>
            <!--@elseif($val->type == 'product_img')-->
                <th scope="col" class="{$_l}">
                    <div>{$lang->product_img}</div>
                </th>
            <!--@elseif($val->type == 'product_name')-->
                <th scope="col" class="title {$_l}">
                    <div>
					<a href="{getUrl('sort_index','title','order_type',$order_type)}">{$lang->product_name}<!--@if($sort_index=='title')--><img src="./img/common/{$order_icon}" alt="" width="5" height="3" /><!--@end--></a>
					</div>
                </th>
            <!--@elseif($val->type == 'price_sale')-->
                <th scope="col" class="{$_l}">
                    <div>
					<a href="{getUrl('sort_index','price_sale','order_type',$order_type)}">가격<!--@if($sort_index=='price_sale')--><img src="./img/common/{$order_icon}" alt="" width="5" height="3" /><!--@end--></a>
					</div>
                </th>

            <!--@elseif($val->type == 'product_brand')-->
                <th scope="col" class="{$_l}">
                    <div>{$lang->product_brand}</div>
                </th>
            <!--@elseif($val->type == 'product_maker')-->
                <th scope="col" class="{$_l}">
                    <div>{$lang->product_maker}</div>
                </th>
            <!--@elseif($val->type == 'product_origin')-->
                <th scope="col" class="{$_l}">
                    <div>{$lang->product_origin}</div>
                </th>
            <!--@elseif($val->type == 'regdate')-->
                <th scope="col" class="date {$_l}"><div><a href="{getUrl('sort_index','regdate','order_type',$order_type)}">{$lang->date}<!--@if($sort_index=='regdate')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></div></th>
            <!--@elseif($val->type == 'last_update')-->
                <th scope="col" class="date {$_l}"><div><a href="{getUrl('sort_index','last_update','order_type',$order_type)}">{$lang->last_update}<!--@if($sort_index=='last_update')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></div></th>
            <!--@elseif($val->type == 'readed_count')-->
                <th class="reading" scope="col" {$_lc}><div><a href="{getUrl('sort_index','readed_count','order_type',$order_type)}">{$lang->readed_count}<!--@if($sort_index=='readed_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></div></th>
            <!--@elseif($val->type == 'voted_count')-->
                <th class="recommend" scope="col" {$_lc}><div><a href="{getUrl('sort_index','voted_count','order_type',$order_type)}">{$lang->voted_count}<!--@if($sort_index=='voted_count')--><img src="./images/common/{$order_icon}" alt="" width="5" height="3" class="sort" /><!--@end--></a></div></th>
            <!--@end-->

        <!--// 사용자 선언 확장변수일 경우 -->
        <!--@else-->
                <th scope="col" {$_lc}><div>{$val->name}</div></th>
        <!--@end-->

        {@ $_line_idx++;}
    <!--@end-->

	<!--@if($module_info->is_shopxe)-->    	
		<!--@if($module_info->is_list_btn=="yes")-->    	
			<th>-</th>
		<!--@end-->
	<!--@end-->
		    <!--// 목록 설정으로 table theader 생성 -->
		</tr>
	</thead>
	<tbody>

<!--@if(!$product_list)-->
		<tr>
			<td colspan="<!--@if($grant->manager)-->{count($list_config)+1}<!--@else-->{count($list_config)}<!--@end-->">{$lang->no_products}</td>
		</tr>
<!--@else-->
	<!--@foreach($product_list as $no => $product)-->
        <tr class="bg{($no+1)%2+1}">
			<!--@if($grant->manager)-->
			<td class="wide5">
				<input type="checkbox" name="cart" value="{$product->oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($product->oDocument->isCarted())-->checked="checked"
				<!--@end--> />
				<a href="{getUrl('document_srl',$product->oDocument->document_srl,'cpage','')}" target="_blank"></a>
			</td>
	        <!--@end-->
            <!--@foreach($list_config as $key => $val)-->
                <!--// 기본 컨텐츠일 경우 -->
                <!--@if($val->idx == -1)-->
                <!--// 사용자 선언 확장변수일 경우 -->
                    <!--@if($val->type == 'no')-->
			<td class="num">{$no}</td>
                    <!--@elseif($val->type == 'product_img')-->
			<td class="product_img">
				<!--@if($product->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, 'crop'))-->
					<a href="{getUrl('document_srl',$product->oDocument->document_srl,'cpage','')}"><img src="{$product->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" width="{$module_info->thumbnail_width}" height="{$module_info->thumbnail_height}" alt="" class="thumb" /></a>
				<!--@else-->
					<a href="{getUrl('document_srl',$product->oDocument->document_srl,'cpage','')}"><img src="./img/common/img_blank.gif" border="0" alt="" class="thumb" width="{$module_info->thumbnail_width}" height="{$module_info->thumbnail_height}" /></a>
				<!--@end-->
			</td>
                    <!--@elseif($val->type == 'product_name')-->
			<td class="product_name">
				<!--@if($module_info->use_category == "Y" && $product->oDocument->get('category_srl'))-->
					[{$category_list[$product->oDocument->get('category_srl')]->title}]
				<!--@end-->
				<b><font size="2"><a href="{getUrl('document_srl',$product->oDocument->document_srl,'cpage','')}">
				{$product->oDocument->getTitle($module_info->subject_cut_size)}</a></font></b>
			</td>
                    <!--@elseif($val->type == 'price_sale')-->
			<td class="product_name">{number_format($product->oProduct->price_sale)} {$lang->monetary_unit}</td>
                    <!--@elseif($val->type == 'product_brand')-->
			<td class="product_name">{$product->oProduct->brand}</td>
                    <!--@elseif($val->type == 'regdate')-->
			<td class="date">{$product->oDocument->getRegdate('Y-m-d')}</td>
                    <!--@elseif($val->type == 'last_update')-->
			<td class="date">{zdate($product->oDocument->get('last_update'),'Y-m-d H:i')}</td>
                    <!--@elseif($val->type == 'readed_count')-->
			<td class="reading">{$product->oDocument->get('readed_count')>0?$product->oDocument->get('readed_count'):'&nbsp;'}</td>
                    <!--@elseif($val->type == 'voted_count')-->
			<td class="recommend">{$product->oDocument->get('voted_count')!=0?$product->oDocument->get('voted_count'):'&nbsp;'}</td>
					<!--@elseif($val->type == 'product_maker')-->
			<td class="maker">{$product->oProduct->maker}</td>
                    <!--@elseif($val->type == 'product_origin')-->
			<td class="origin">{$product->oProduct->origin}</td>
					<!--@end-->
                <!--@else-->
                        <td>{$product->oDocument->getExtraValueHTML($val->idx)}&nbsp;</td>
                <!--@end-->
            <!--@end-->
			<!--@if($module_info->is_shopxe)-->    	
				<!--@if($module_info->is_list_btn=="yes")-->    	
			<td>
				<!--@if(!$product->options)-->
				<span class="btn">
					<a href="#" onclick="doInsertOrderForm({$product->oDocument->document_srl},'{$module_info->mid}'); false;">주문</a>
				</span>
				<span class="btn">
					<a href="#" onclick="doInsertCart({$product->oDocument->document_srl},'{$module_info->mid}'); false;">장바구니</a>
				</span>
					<!--@end-->
				<span class="btn">
					<a href="#" onclick="doInsertWish({$product->oProduct->product_srl},'{$module_info->mid}'); false;">관심</a>
				</span>
			</td>
				<!--@end-->
			<!--@end-->
		</tr>
	<!--@end-->
<!--@end-->
	</tbody>
	</table>
		
<div class="productPaginate">
    <a href="{getUrl('page','','document_srl','','division',$division,'last_division',$last_division,'entry','')}"><</a>
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'document_srl','','division',$division,'last_division',$last_division,'entry','')}">{$page_no}</a>
        <!--@end-->
    <!--@end-->
        <a href="{getUrl('page',$page_navigation->last_page,'document_srl','','division',$division,'last_division',$last_division,'entry','')}">></a>
</div>
